'use strict';

const Controller = require('egg').Controller;

class UserforsalesController extends Controller {
   //此处接口采用模拟的方式
   async isLogin() {
      const {ctx} = this;
      ctx.body = {
         "code": 0,
         "result": {
            "id": "0",
            "updateTime": 0,
            "createTime": 0,
            "version": 0,
            "enabled": false,
            "mobile": "18610598852",
            "email": "admin@liweijia.com",
            "name": "管理员",
            "sourceSystemCode": "",
            "password": "400-6060-010",
            "salt": null,
            "roles": [{"name": "ROLE_ADMIN"}, {"name": "ROLE_ADMIN111"}, {"name": "ROLE_ANONYMOUS"}, {"name": "ROLE_ANONYMOUSssss"}, {"name": "ROLE_REPORT_VIEWER"}, {"name": "ROLE_STORE_ADMIN"}, {"name": "ROLE_STORE_EMPLOYEE"}, {"name": "ROLE_STORE_SALESMAN"}, {"name": "ROLE_TENANT_ACCOUNTANT"}, {"name": "ROLE_TENANT_ADMIN"}, {"name": "ROLE_TENANT_BALANCE_CHANGING_AUDIT"}, {"name": "ROLE_TENANT_CASHIER"}, {"name": "ROLE_TENANT_DESIGNER"}, {"name": "ROLE_TENANT_HXJADMIN"}, {"name": "ROLE_TENANT_HXJBUSINESS"}, {"name": "ROLE_TENANT_HXJDESIGNER"}, {"name": "ROLE_TENANT_HXJPARTNER"}, {"name": "ROLE_TENANT_HXJPM"}, {"name": "ROLE_TENANT_HXJSALES_PM"}, {"name": "ROLE_TENANT_HXJUSER"}, {"name": "ROLE_TENANT_HXJWORKER"}, {"name": "ROLE_TENANT_ORDER"}, {"name": "ROLE_TENANT_PROFITS"}, {"name": "ROLE_TEST_AOJIA"}, {"name": "ROLE_USER"}],
            "extend": {"tenantName": "aojia", "tenantId": "98ff6f5b0a614c898450a5951e35cbed"}
         }
      };
   }

   async currentTenant() {
      const {ctx} = this;
      ctx.body = {
         "code": 0,
         "result": {
            "id": "98ff6f5b0a614c898450a5951e35cbed",
            "name": "aojia",
            "displayName": "奥家",
            "enabled": true,
            "logo": "http://resource.mutoulaile.com/liweijia/pc/common/images/logo.svg"
         }
      };
   }

   async menus() {
      const {ctx} = this;
      ctx.body = [{
         "id": "1",
         "icon": "pie-chart",
         "name": "主页",
         "mpid": null,
         "route": "/dashboard",
         "checked": null
      }, {
         "id": "10",
         "icon": "bar-chart",
         "name": "订单管理",
         "mpid": null,
         "route": null,
         "checked": null
      }, {
         "id": "1010",
         "icon": null,
         "name": "订单查询",
         "mpid": "10",
         "route": "/orderList/ALL",
         "checked": null
      }, {
         "id": "1020",
         "icon": null,
         "name": "待办订单",
         "mpid": "10",
         "route": "/orderList/myOrder",
         "checked": null
      }, {
         "id": "1030",
         "icon": null,
         "name": "已取消",
         "mpid": "10",
         "route": "/order/canceled",
         "checked": null
      }, {
         "id": "1040",
         "icon": null,
         "name": "合同取消审核",
         "mpid": "10",
         "route": "/order/canceling",
         "checked": null
      }, {
         "id": "1050",
         "icon": null,
         "name": "合同变更申请",
         "mpid": "10",
         "route": "/order/orderChangeApply",
         "checked": null
      }, {
         "id": "1060",
         "icon": null,
         "name": "待确认丽维家报价",
         "mpid": "10",
         "route": "/order/confirmOmsQuote",
         "checked": null
      }, {
         "id": "1080",
         "icon": null,
         "name": "生产物流",
         "mpid": "10",
         "route": "/order/inProduction",
         "checked": null
      }, {
         "id": "1090",
         "icon": null,
         "name": "分润管理",
         "mpid": "10",
         "route": "/order/profits",
         "checked": null
      }, {
         "id": "50",
         "icon": "pay-circle-o",
         "name": "财务管理",
         "mpid": null,
         "route": null,
         "checked": null
      }, {
         "id": "5023",
         "icon": "pay-circle-o",
         "name": "租户充值",
         "mpid": "50",
         "route": "/financial/tenant/charge",
         "checked": null
      }, {
         "id": "5020",
         "icon": "calculator",
         "name": "财务结算",
         "mpid": "50",
         "route": "/financialSettlementApply",
         "checked": null
      }, {
         "id": "5030",
         "icon": "bank",
         "name": "付款单",
         "mpid": "50",
         "route": "/financialPaymentBill",
         "checked": null
      }, {
         "id": "5040",
         "icon": "inbox",
         "name": "收款单",
         "mpid": "50",
         "route": "/receipt",
         "checked": null
      }, {
         "id": "5050",
         "icon": "wallet",
         "name": "门店余额",
         "mpid": "50",
         "route": "/financialAccountBalance",
         "checked": null
      }, {
         "id": "5055",
         "icon": "wallet",
         "name": "门店余额变更",
         "mpid": "50",
         "route": "/financial/balanceChangeApply",
         "checked": null
      }, {
         "id": "5060",
         "icon": "link",
         "name": "结算批次",
         "mpid": "50",
         "route": "/settlementBatch",
         "checked": null
      }, {
         "id": "5070",
         "icon": "switcher",
         "name": "财务流水",
         "mpid": "50",
         "route": "/financialBill",
         "checked": null
      }, {
         "id": "5090",
         "icon": "appstore-o",
         "name": "待缴尾款",
         "mpid": "50",
         "route": "/order/contractOrders",
         "checked": null
      }, {"id": "60", "icon": "link", "name": "营销管理", "mpid": null, "route": null, "checked": null}, {
         "id": "6001",
         "icon": "global",
         "name": "优惠券管理",
         "mpid": "60",
         "route": "/marketing/coupon",
         "checked": null
      }, {
         "id": "70",
         "icon": "radar-chart",
         "name": "门店账户",
         "mpid": null,
         "route": null,
         "checked": null
      }, {
         "id": "7010",
         "icon": "pay-circle",
         "name": "门店充值",
         "mpid": "70",
         "route": "/financial/shop/charge",
         "checked": null
      }, {
         "id": "7020",
         "icon": "api",
         "name": "优惠券",
         "mpid": "70",
         "route": "/marketing/coupon/listByDistributor",
         "checked": null
      }, {"id": "80", "icon": "sliders", "name": "商品管理", "mpid": null, "route": null, "checked": null}, {
         "id": "8010",
         "icon": "pay-circle",
         "name": "全部商品",
         "mpid": "80",
         "route": "/product/list",
         "checked": null
      }, {
         "id": "8020",
         "icon": "pay-circle",
         "name": "商品门店管理",
         "mpid": "80",
         "route": "/product/store",
         "checked": null
      }, {
         "id": "8030",
         "icon": "pay-circle",
         "name": "商品库管理",
         "mpid": "80",
         "route": "/commodityBank/commodityBankList",
         "checked": null
      }, {
         "id": "8040",
         "icon": "pay-circle",
         "name": "推荐商品",
         "mpid": "80",
         "route": "/product/recommend",
         "checked": null
      }, {
         "id": "81",
         "icon": "appstore",
         "name": "分销市场",
         "mpid": null,
         "route": null,
         "checked": null
      }, {
         "id": "8110",
         "icon": "pay-circle",
         "name": "分销市场",
         "mpid": "81",
         "route": "/salesmarket/salesmarket",
         "checked": null
      }, {
         "id": "8120",
         "icon": "pay-circle",
         "name": "支付订单",
         "mpid": "81",
         "route": "/payorder/payorderlist",
         "checked": null
      }, {"id": "85", "icon": "smile", "name": "小程序", "mpid": null, "route": null, "checked": null}, {
         "id": "8510",
         "icon": "file",
         "name": "入驻审核",
         "mpid": "85",
         "route": "/wx/salesDistributorRegistryApply/salesDistributorRegistryApplylist",
         "checked": null
      }, {
         "id": "8520",
         "icon": "file",
         "name": "提现列表",
         "mpid": "85",
         "route": "/wx/transferToBalanceRecord/transferToBalanceRecordList",
         "checked": null
      }, {
         "id": "8530",
         "icon": "file",
         "name": "门店管理",
         "mpid": "85",
         "route": "/wx/distributorManage/distributorList",
         "checked": null
      }, {
         "id": "95",
         "icon": "area-chart",
         "name": "报表管理",
         "mpid": null,
         "route": null,
         "checked": null
      }, {
         "id": "9510",
         "icon": "file-excel",
         "name": "报表导出",
         "mpid": "95",
         "route": "/reports",
         "checked": null
      }, {
         "id": "9520",
         "icon": "export",
         "name": "报表配置",
         "mpid": "95",
         "route": "/reportConfigs",
         "checked": null
      }, {"id": "96", "icon": "user", "name": "会员设置", "mpid": null, "route": null, "checked": null}, {
         "id": "9610",
         "icon": "file-excel",
         "name": "等级设置",
         "mpid": "96",
         "route": "/member/grades",
         "checked": null
      }, {"id": "90", "icon": "setting", "name": "系统管理", "mpid": null, "route": null, "checked": null}, {
         "id": "9001",
         "icon": "user",
         "name": "员工管理",
         "mpid": "90",
         "route": "/userManage",
         "checked": null
      }, {
         "id": "9010",
         "icon": "user",
         "name": "系统用户",
         "mpid": "90",
         "route": "/user",
         "checked": null
      }, {
         "id": "9020",
         "icon": "solution",
         "name": "角色管理",
         "mpid": "90",
         "route": "/role",
         "checked": null
      }, {
         "id": "9040",
         "icon": "api",
         "name": "组织机构管理",
         "mpid": "90",
         "route": "/organization",
         "checked": null
      }, {"id": "9050", "icon": "global", "name": "配置管理", "mpid": "90", "route": "/system/config", "checked": null}];
   }

   async boundUI() {
      const {ctx} = this;
      ctx.body = {
         "code": 0,
         "result": [{
            "id": "42b4c104b2354a2ca8adfbd1515aa9cb",
            "updateTime": 1550230163037,
            "createTime": 1550230163037,
            "version": 0,
            "enabled": false,
            "name": "支付订单编辑",
            "url": "orderList.payOrder.edit",
            "description": "支付订单编辑",
            "type": "UI",
            "priority": 500
         }]
      };
   }

   async info() {
      const {ctx} = this;
      ctx.body = {
         "code": 0,
         "result": {
            "distributorSummaries": [
               {
                  "id": "002ff1480a634480bad3c57f55f4b661",
                  "name": "测试（杨政）",
                  "financialAccountName": "测试（杨政）",
                  "bankAccount": null,
                  "organizationName": "新疆乌鲁木齐丽维家体验中心（杨政）",
                  "organizationCode": "DSFPTAJ99853ddc2bd04032ad044ba4c3d46e77",
                  "organizationId": "fc62fd0402144ecaa7331eb01da311ea",
                  "financialAccountBranch": null,
                  "financialAccountBankName": null,
                  "financialAccountBankUserName": null,
                  "balance": "244827.79",
                  "enabled": true,
                  "creditLine": 0.00,
                  "paymentRatio": 100.00,
                  "version": 33,
                  "distributorSigner": null,
                  "distributorSignerMobile": null,
                  "distributorSignerName": null,
                  "distributorOperator": "leiluobing@liweijia.com",
                  "code": "AJWLM01",
                  "financialAccountId": "9d8662052853450ea4f0b938dff3e1fd",
                  "thirdAccountId": null,
                  "city": "650100",
                  "province": "650000",
                  "district": "650102",
                  "address": "大陆国际805",
                  "businessMalls": [{
                     "id": "c54bbc669efd4b3ea705392ef5fdcd46",
                     "updateTime": 0,
                     "createTime": 1538106168790,
                     "version": 4,
                     "enabled": false,
                     "mallUrl": "http://you-staging.aojiahome.com",
                     "name": "奥家优选（手机端）"
                  }, {
                     "id": "1d59885fc7de44e2a9d8a8cf077b1507",
                     "updateTime": 0,
                     "createTime": 1538104215804,
                     "version": 3,
                     "enabled": false,
                     "mallUrl": "http://www-staging.aojiahome.com",
                     "name": "奥家官网（网页端）"
                  }],
                  "marketStatus": true,
                  "transferToBalanceStatus": true,
                  "commodityStoreStatus": "UPDATE",
                  "displayName": null,
                  "childrenNode": null,
                  "invitationCode": "QWB4",
                  "invitationCodeWithParent": null,
                  "enterPic": null,
                  "enterpriseName": null,
                  "businessLicensePic": null,
                  "registrationNumber": null,
                  "invitedBy": null,
                  "directInvited": null,
                  "totalInvited": null,
                  "createTime": 0,
                  "fullAddress": null,
                  "idCardBackPic": null,
                  "idCardFrontPic": null,
                  "userIdentityNum": null,
                  "mobile": null,
                  "userName": null,
                  "distributorSignerRole": null,
                  "levelInfo": {
                     "id": "139efdac3cbb4f71aea5eaa2411c2b9f",
                     "score": 0.00,
                     "levelItem": {
                        "id": "c261f7824f954bf6b9a8c8952fb4e2c2",
                        "name": "白银",
                        "minScore": 0.00,
                        "maxScore": 1.00,
                        "priority": 3,
                        "iconPath": "/level/20190118/6f491da743424ed4b9119ea0a980d906.jpg",
                        "memo": "1",
                        "privilegeInfoList": [{
                           "id": "30b93001e04f4064a64594d797e85505",
                           "data": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"10.00\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"5.00\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "bde66b9a7cba421b8123b77feb24a4b9",
                              "name": "分润",
                              "privilegeCode": "PRIVILEGE_PROFITS",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "特权介绍 \r\n\r&emsp;&emsp;通过个人中心邀请链接或邀请码邀请新用户完成惠享家注册后，新用户完成订单您都将获得现金奖励。\r\n\r注册会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的1‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的0.5‰；\r\n\r铜牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的2‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1‰；\r\n\r银牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的3‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1.5‰；\r\n\r金牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的4‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2‰；\r\n\r钻石会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的5‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2.5‰；",
                              "tempData": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "邀请好友注册，不用下单也可赚取订单提成"
                           }
                        }, {
                           "id": "af1e5238bc284571b1abd0f6dc7aa382",
                           "data": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"20\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "52197f2ba61d47cdb4b722fc46931790",
                              "name": "价格折扣",
                              "privilegeCode": "PRIVILEGE_PRICE_DISCOUNT",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "价格折扣",
                              "tempData": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "价格折扣简述"
                           }
                        }],
                        "shortMemo": null
                     }
                  }
               },
               {
                  "id": "004b213b52a34a6fbd8449934ae4d844",
                  "name": "TB03455",
                  "financialAccountName": "TB03455",
                  "bankAccount": " ",
                  "organizationName": "TB03455",
                  "organizationCode": "HXYCA66",
                  "organizationId": "5d8d035b4e334d81941c61128c11361d",
                  "financialAccountBranch": " ",
                  "financialAccountBankName": " ",
                  "financialAccountBankUserName": "朱金帅",
                  "balance": "11212.00",
                  "enabled": true,
                  "creditLine": 0.00,
                  "paymentRatio": 100.00,
                  "version": 7,
                  "distributorSigner": null,
                  "distributorSignerMobile": null,
                  "distributorSignerName": null,
                  "distributorOperator": "guanwang@liweijia.com",
                  "code": "HXYCA66",
                  "financialAccountId": "3d03a1deaec84a2aa76eecb36b11f09c",
                  "thirdAccountId": null,
                  "city": "510600",
                  "province": "510000",
                  "district": "510681",
                  "address": "ff3333333aaaaaaaa775346%%^^$;;;''./;';l';;//;;;",
                  "businessMalls": [{
                     "id": "c54bbc669efd4b3ea705392ef5fdcd46",
                     "updateTime": 0,
                     "createTime": 1538106168790,
                     "version": 4,
                     "enabled": false,
                     "mallUrl": "http://you-staging.aojiahome.com",
                     "name": "奥家优选（手机端）"
                  }, {
                     "id": "1d59885fc7de44e2a9d8a8cf077b1507",
                     "updateTime": 0,
                     "createTime": 1538104215804,
                     "version": 3,
                     "enabled": false,
                     "mallUrl": "http://www-staging.aojiahome.com",
                     "name": "奥家官网（网页端）"
                  }],
                  "marketStatus": false,
                  "transferToBalanceStatus": true,
                  "commodityStoreStatus": null,
                  "displayName": null,
                  "childrenNode": null,
                  "invitationCode": "CKBB",
                  "invitationCodeWithParent": null,
                  "enterPic": null,
                  "enterpriseName": null,
                  "businessLicensePic": null,
                  "registrationNumber": null,
                  "invitedBy": null,
                  "directInvited": null,
                  "totalInvited": null,
                  "createTime": 1541727789764,
                  "fullAddress": null,
                  "idCardBackPic": null,
                  "idCardFrontPic": null,
                  "userIdentityNum": null,
                  "mobile": null,
                  "userName": null,
                  "distributorSignerRole": null,
                  "levelInfo": {
                     "id": "338c54caebbd4fb2b2c8be47ab98c2b1",
                     "score": 0.00,
                     "levelItem": {
                        "id": "c261f7824f954bf6b9a8c8952fb4e2c2",
                        "name": "白银",
                        "minScore": 0.00,
                        "maxScore": 1.00,
                        "priority": 3,
                        "iconPath": "/level/20190118/6f491da743424ed4b9119ea0a980d906.jpg",
                        "memo": "1",
                        "privilegeInfoList": [{
                           "id": "30b93001e04f4064a64594d797e85505",
                           "data": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"10.00\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"5.00\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "bde66b9a7cba421b8123b77feb24a4b9",
                              "name": "分润",
                              "privilegeCode": "PRIVILEGE_PROFITS",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "特权介绍 \r\n\r&emsp;&emsp;通过个人中心邀请链接或邀请码邀请新用户完成惠享家注册后，新用户完成订单您都将获得现金奖励。\r\n\r注册会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的1‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的0.5‰；\r\n\r铜牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的2‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1‰；\r\n\r银牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的3‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1.5‰；\r\n\r金牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的4‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2‰；\r\n\r钻石会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的5‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2.5‰；",
                              "tempData": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "邀请好友注册，不用下单也可赚取订单提成"
                           }
                        }, {
                           "id": "af1e5238bc284571b1abd0f6dc7aa382",
                           "data": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"20\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "52197f2ba61d47cdb4b722fc46931790",
                              "name": "价格折扣",
                              "privilegeCode": "PRIVILEGE_PRICE_DISCOUNT",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "价格折扣",
                              "tempData": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "价格折扣简述"
                           }
                        }],
                        "shortMemo": null
                     }
                  }
               },
               {
                  "id": "078464b931284786aa5c0bc4136cfade",
                  "name": "TB36779",
                  "financialAccountName": "TB36779",
                  "bankAccount": " ",
                  "organizationName": "TB36779",
                  "organizationCode": "HXOQO97",
                  "organizationId": "c42b5fa97a564d348654b384bb9b4046",
                  "financialAccountBranch": " ",
                  "financialAccountBankName": " ",
                  "financialAccountBankUserName": "肖军",
                  "balance": "0.00",
                  "enabled": true,
                  "creditLine": 0.00,
                  "paymentRatio": 100.00,
                  "version": 1,
                  "distributorSigner": null,
                  "distributorSignerMobile": "18782998329",
                  "distributorSignerName": "肖师",
                  "distributorOperator": "guanwang@liweijia.com",
                  "code": "HXOQO97",
                  "financialAccountId": "d68b70dba8db4364a112367f54e13917",
                  "thirdAccountId": null,
                  "city": "510100",
                  "province": "510000",
                  "district": "510107",
                  "address": "成都市武侯区文锦街一号",
                  "businessMalls": [{
                     "id": "c54bbc669efd4b3ea705392ef5fdcd46",
                     "updateTime": 0,
                     "createTime": 1538106168790,
                     "version": 4,
                     "enabled": false,
                     "mallUrl": "http://you-staging.aojiahome.com",
                     "name": "奥家优选（手机端）"
                  }, {
                     "id": "1d59885fc7de44e2a9d8a8cf077b1507",
                     "updateTime": 0,
                     "createTime": 1538104215804,
                     "version": 3,
                     "enabled": false,
                     "mallUrl": "http://www-staging.aojiahome.com",
                     "name": "奥家官网（网页端）"
                  }],
                  "marketStatus": true,
                  "transferToBalanceStatus": true,
                  "commodityStoreStatus": null,
                  "displayName": "肖军",
                  "childrenNode": null,
                  "invitationCode": "JB0M",
                  "invitationCodeWithParent": null,
                  "enterPic": "/huixiangjia/20190108/768164b193d745ebbff26ca372e7fda9.jpg;/huixiangjia/20190108/0fe0782cb4fd4f4b87a629cbc0f6d52e.jpg",
                  "enterpriseName": null,
                  "businessLicensePic": null,
                  "registrationNumber": null,
                  "invitedBy": null,
                  "directInvited": null,
                  "totalInvited": null,
                  "createTime": 1547000384326,
                  "fullAddress": null,
                  "idCardBackPic": null,
                  "idCardFrontPic": null,
                  "userIdentityNum": null,
                  "mobile": "18782998329",
                  "userName": null,
                  "distributorSignerRole": null,
                  "levelInfo": {
                     "id": "0e06de003cd74272bac795425280ae35",
                     "score": 0.00,
                     "levelItem": {
                        "id": "c261f7824f954bf6b9a8c8952fb4e2c2",
                        "name": "白银",
                        "minScore": 0.00,
                        "maxScore": 1.00,
                        "priority": 3,
                        "iconPath": "/level/20190118/6f491da743424ed4b9119ea0a980d906.jpg",
                        "memo": "1",
                        "privilegeInfoList": [{
                           "id": "30b93001e04f4064a64594d797e85505",
                           "data": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"10.00\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"5.00\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "bde66b9a7cba421b8123b77feb24a4b9",
                              "name": "分润",
                              "privilegeCode": "PRIVILEGE_PROFITS",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "特权介绍 \r\n\r&emsp;&emsp;通过个人中心邀请链接或邀请码邀请新用户完成惠享家注册后，新用户完成订单您都将获得现金奖励。\r\n\r注册会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的1‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的0.5‰；\r\n\r铜牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的2‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1‰；\r\n\r银牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的3‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1.5‰；\r\n\r金牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的4‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2‰；\r\n\r钻石会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的5‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2.5‰；",
                              "tempData": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "邀请好友注册，不用下单也可赚取订单提成"
                           }
                        }, {
                           "id": "af1e5238bc284571b1abd0f6dc7aa382",
                           "data": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"20\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "52197f2ba61d47cdb4b722fc46931790",
                              "name": "价格折扣",
                              "privilegeCode": "PRIVILEGE_PRICE_DISCOUNT",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "价格折扣",
                              "tempData": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "价格折扣简述"
                           }
                        }],
                        "shortMemo": null
                     }
                  }
               },
               {
                  "id": "07877a4f7cf146f29a8a38afddbb2335",
                  "name": "山东菏泽丽维家体验中心",
                  "financialAccountName": "山东菏泽丽维家体验中心",
                  "bankAccount": null,
                  "organizationName": "山东菏泽丽维家体验中心",
                  "organizationCode": "DSFPTAJa5b7b87f82154a0aba5690c550b5680f",
                  "organizationId": "3bdd9c82e9bf4bbbbb28d838d7cc614a",
                  "financialAccountBranch": null,
                  "financialAccountBankName": null,
                  "financialAccountBankUserName": null,
                  "balance": "0.00",
                  "enabled": true,
                  "creditLine": 0.00,
                  "paymentRatio": 100.00,
                  "version": 5,
                  "distributorSigner": null,
                  "distributorSignerMobile": null,
                  "distributorSignerName": null,
                  "distributorOperator": null,
                  "code": null,
                  "financialAccountId": "176eb978b67347c3959886f89d5c11a4",
                  "thirdAccountId": null,
                  "city": null,
                  "province": null,
                  "district": null,
                  "address": null,
                  "businessMalls": [{
                     "id": "c54bbc669efd4b3ea705392ef5fdcd46",
                     "updateTime": 0,
                     "createTime": 1538106168790,
                     "version": 4,
                     "enabled": false,
                     "mallUrl": "http://you-staging.aojiahome.com",
                     "name": "奥家优选（手机端）"
                  }, {
                     "id": "1d59885fc7de44e2a9d8a8cf077b1507",
                     "updateTime": 0,
                     "createTime": 1538104215804,
                     "version": 3,
                     "enabled": false,
                     "mallUrl": "http://www-staging.aojiahome.com",
                     "name": "奥家官网（网页端）"
                  }],
                  "marketStatus": null,
                  "transferToBalanceStatus": true,
                  "commodityStoreStatus": null,
                  "displayName": null,
                  "childrenNode": null,
                  "invitationCode": "C29H",
                  "invitationCodeWithParent": null,
                  "enterPic": null,
                  "enterpriseName": null,
                  "businessLicensePic": null,
                  "registrationNumber": null,
                  "invitedBy": null,
                  "directInvited": null,
                  "totalInvited": null,
                  "createTime": 0,
                  "fullAddress": null,
                  "idCardBackPic": null,
                  "idCardFrontPic": null,
                  "userIdentityNum": null,
                  "mobile": null,
                  "userName": null,
                  "distributorSignerRole": null,
                  "levelInfo": {
                     "id": "4f31a81332b14e758675054be14c0ac9",
                     "score": 0.00,
                     "levelItem": {
                        "id": "c261f7824f954bf6b9a8c8952fb4e2c2",
                        "name": "白银",
                        "minScore": 0.00,
                        "maxScore": 1.00,
                        "priority": 3,
                        "iconPath": "/level/20190118/6f491da743424ed4b9119ea0a980d906.jpg",
                        "memo": "1",
                        "privilegeInfoList": [{
                           "id": "30b93001e04f4064a64594d797e85505",
                           "data": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"10.00\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"5.00\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "bde66b9a7cba421b8123b77feb24a4b9",
                              "name": "分润",
                              "privilegeCode": "PRIVILEGE_PROFITS",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "特权介绍 \r\n\r&emsp;&emsp;通过个人中心邀请链接或邀请码邀请新用户完成惠享家注册后，新用户完成订单您都将获得现金奖励。\r\n\r注册会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的1‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的0.5‰；\r\n\r铜牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的2‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1‰；\r\n\r银牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的3‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的1.5‰；\r\n\r金牌会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的4‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2‰；\r\n\r钻石会员\r\n\r&emsp;&emsp;直接邀请奖励：为订单金额的5‰；\r\n\r&emsp;&emsp;间接邀请奖励：为订单金额的2.5‰；",
                              "tempData": "{\"items\":[{\"displayName\":\"一级分润比例\",\"code\":\"PROFITS_PERCENT_PARENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"},{\"displayName\":\"二级分润比例\",\"code\":\"PROFITS_PERCENT_GRAND\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "邀请好友注册，不用下单也可赚取订单提成"
                           }
                        }, {
                           "id": "af1e5238bc284571b1abd0f6dc7aa382",
                           "data": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"20\",\"unit\":\"%\",\"memo\":\"\"}]}",
                           "levelPrivilege": {
                              "id": "52197f2ba61d47cdb4b722fc46931790",
                              "name": "价格折扣",
                              "privilegeCode": "PRIVILEGE_PRICE_DISCOUNT",
                              "iconPath": "/huixiangjia/20190115/2560be2dab88496eb11eb5982fdb3c5c.jpg",
                              "memo": "价格折扣",
                              "tempData": "{\"items\":[{\"displayName\":\"价格折扣百分比\",\"code\":\"DISCOUNT_PERCENT\",\"value\":\"\",\"unit\":\"%\",\"memo\":\"\"}]}",
                              "shortMemo": "价格折扣简述"
                           }
                        }],
                        "shortMemo": null
                     }
                  }
               }
            ]
         }
      };
   }
}

module.exports = UserforsalesController;
